<%@ page language="java" import="java.util.*,com.servlet.util.User_info_getName,java.text.SimpleDateFormat" pageEncoding="UTF-8"%>

  <link rel="stylesheet" type="text/css" href="/stusys/css/user_news.css">
 <script src="/stusys/js/user_news.js" type="text/javascript" charset="GBK"></script>   

<%List pub=(List)request.getAttribute("pub");
  List us=(List)request.getAttribute("us");
 /*  if(pub!=null)
 for(int i=0;i<pub.size();i++)
        {
        	Object[] ea=(Object[])pub.get(i);
        	%>
        	<br><br><br><div><a href="#"><%=ea[2] %></a></div>
        	<% 
 }
 if(us!=null)
 for(int i=0;i<us.size();i++)
        {
        	Object[] ea=(Object[])us.get(i);
        	%>
        	<br><br><br><div><a href="#"><%=ea[2] %></a></div>
        	<% 
 }*/
 %>
 <div class="news_tl">信息中心</div>
<div class="news">
 <div class="news_ct">
  <div class="news_sl">
   <ul id="pub_user"> 
    <li class="ns_sl" id="us_page">个人消息</li>
    <li class="ns_sl" id="pub_page">公共消息</li> 
   </ul> 
  </div> 
  
  <%
     if(us!=null)
   {
    int sum= us.size();
    int iterations =sum/7;
    int pg_sum;
  if(sum/7>0){
  if(sum%7>0)
   pg_sum=iterations+1;
   else 
   pg_sum=iterations;
  }
  else {
    pg_sum=1;
  }
    int startAt=7;
    int n=0;
    int pg=1;
  while(iterations-->0)  {
   %><div class="us_page news_page"id="us_page<%=pg++ %>"><%
   switch(startAt){
       case 7: %><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
       case 6:%><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
       case 5:%><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
       case 4:%><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
       case 3:%><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
       case 2:%><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
       case 1: %><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
   }
   startAt = 7;
   %>  </div> <% 
   
}
 
   if((startAt=sum%7)!=0&&iterations<=0)//
   {
        
      %><div class="us_page news_page"id="us_page<%=pg++ %>"><%
       switch(startAt){
      
       case 6: %><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
     case 5: %><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
     case 4: %><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
     case 3: %><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
     case 2: %><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
     case 1: %><div class="news_show" id="<%=((Object[])us.get(n))[0] %>"><span class="news_tt"><%=((Object[])us.get(n))[1] %></span><div class="date_sh"><%=((Object[])us.get(n))[2] %></div></div>
   <%  ;n++;
   
   }
      %></div>
       <div class="trs_bt us_page_trs" id="us_bt"> <span class="pg_num"id="us_pre">上一页</span><span id="us_page_crr">1</span>/<span id="us_page_sum"><%=pg_sum %></span> <span class="pg_num"id="us_next">下一页</span></div>
     <% 
      
   }
 
   }
   %>
 
  <%
    if(pub!=null)
    {
     int sum= pub.size();
    int iterations =sum/7;
    int pg_sum;
  if(sum/7>0){
  if(sum%7>0)
   pg_sum=iterations+1;
   else 
   pg_sum=iterations;
  }
  else {
    pg_sum=1;
  }
    int startAt=7;
    int n=0;
    int pg=1;
        while(iterations-->0)  {
   %><div class="pub_page news_page"id="pub_page<%=pg++ %>"><%
   switch(startAt){
       case 7: %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
       case 6: %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
       case 5: %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
       case 4: %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
       case 3: %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
       case 2: %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
       case 1: %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
   }
   startAt = 7;
   %>  </div> <% 
   
}
 if((startAt=sum%7)!=0&&iterations<=0)//
   {
 
      %><div class="pub_page news_page"id="pub_page<%=pg++ %>"><%
       switch(startAt){
      
       case 6:  %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
     case 5:  %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
     case 4:  %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
     case 3:  %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
     case 2:  %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
     case 1:  %><div class="news_show" id="<%=((Object[])pub.get(n))[0] %>"><span class="news_tt"><%=((Object[])pub.get(n))[1] %></span><div class="date_sh"><%=((Object[])pub.get(n))[2] %></div></div>
   <%  ;n++;
   
   }
      %></div>
         <div class="trs_bt pub_page_trs" id="pub_bt"> <span class="pg_num"id="pub_pre">上一页</span><span id="pub_page_crr">1</span>/<span id="pub_page_sum"><%=pg_sum %></span> <span class="pg_num" id="pub_next">下一页</span></div>
     <% 
      
     }
    }
    
   %> 
   
   
   
   
   

   
   <div class="ct_show"><div class="center_tt">=kld我电话</div><div class="text_ct">13123whuid外地诶分枉费我i范围ufweiuf我iufiu25</div></div>
 </div>

</div>

